<?php

require_once 'config.php';
if (!isset($_SESSION[SESSION_SHOPCART])) {
    header('location: home.php');
}

$g = new PGlobal();

$page = $g->getLayoutTemplate();
$page['content'] = $g->renderShopcartDetail();
$page->addCss('css/checkout.css');
$page->addCss('css/kh-register.css');
$page->addJs('jsc/jquery.metadata.js');
$page->addJs('jsc/jquery.example.min.js');
$page->addJs('jsc/checkout.js');

echo $page->render();